package com.sist.exception;

import java.util.Random;

public class ArrayIndexTest
{
	
	public static void main( String[] args )
	{
		ArrayIndexTest at = new ArrayIndexTest();
		int x[] = at.getX();
		for ( int i=0; i<x.length; i++ )
		{
			System.out.println( x[i] );
		}
	}

	private int[] getX()
	{
		Random ra = new Random();
		int size = ra.nextInt( 4 );
		int x[] = new int[size];
		
		return x;
	}

}
